package com.alibaba.cloud.cargo.infrastructure.config;

import com.google.common.eventbus.EventBus;

import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author cruise
 */
@Configuration
public class EventConfig {
    @Bean
    @ConditionalOnExpression("${job.enabled:false}")
    public EventBus configEvent() {
        return new EventBus();
    }
}
